home *** CD-ROM | disk | FTP | other *** search
/ Hobby PC 13 / Hobby PC 13.iso / assets / Asset Library / Images / Mouseover Buttons / For White Backgrounds / redbounce / fxitems.xml < prev   
Extensible Markup Language  |  2001-04-09  |  6KB  |  80 lines

  1. <?xml version="1.0" standalone="yes"?>
  2.  
  3. <Items>
  4. <Template>
  5.     <Item Type="File" CLASS="Mouseover Button" ID="%Filename%" FILEFILTER="*.gif;*.jpg;*.png">
  6.         <Icon SRC="%Filename%"/>
  7.         <Icon2 SRC="%Filename%"/>
  8.         <Description>%ASK:Description:%{Button ALT Text}</Description>
  9.         <Filename SRC="%Filename%"/>
  10.         <Filename2 SRC="%Filename%"/>
  11.       <SCRIPT LANGUAGE="JScript"><![CDATA[
  12.         var src, src2, dest, attr, attr2, dst2, dst;
  13.         src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
  14.         src2 = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename2, 0, SRC)%";
  15.  
  16.         function buildpath()
  17.                 {
  18.                 if (ActiveDocument.InCurrentProject)
  19.                         {
  20.                         dst = Application.ProjectDirectory + "\\images\\buttons\\default\\%Filename%";
  21.                         dst2 = Application.ProjectDirectory + "\\images\\buttons\\over\\%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%";
  22.                         attr = Application.PathToURL(dst, ActiveDocument.Path + "default/%Filename%");
  23.                         attr2 = Application.PathToURL(dst2, ActiveDocument.Path + "over/%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%");
  24.                         }
  25.                 else
  26.                         {
  27.                         dst = ActiveDocument.Path + "\\images\\buttons\\default\\%Filename%";
  28.                         dst2 = ActiveDocument.Path + "\\images\\buttons\\over\\%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%";
  29.                         attr = "images/buttons/default/%Filename%";
  30.                         attr2 = "images/buttons/over/%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%";
  31.                         }
  32.                 }
  33.  
  34.         function dropfxnow()
  35.                 {
  36.                 Application.FX.CopyFile(src, dst);
  37.                 Application.FX.CopyFile(src2, dst2);
  38.                 Application.FX.SelectDropPoint();
  39.                 AttrID=ActiveDocument.UniqueAttributeValue("ID","hover")
  40.                 Application.FX.HTML('<A HREF=\"{Choose URL}\" ONMOUSEOVER=\"if \(' + AttrID + '.src\) {' + AttrID + '.src=\'' + attr2 + '\'\}\" ONMOUSEOUT=\"if \(' + AttrID + '.src\) {' + AttrID + '.src=\'' + attr + '\'}\"><IMG ID=\"' + AttrID + '\" SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml("Description", 0)%' + '" BORDER="0"><\/A>',null,null,null,null,true);
  41.                 Application.FX.ShowDialog('ANCHOR');
  42.                 }
  43.  
  44.         // First, check if the file is saved
  45.         if (ActiveDocument.Path != "")
  46.                 {
  47.                 buildpath();
  48.                 dropfxnow();
  49.                 }
  50.         else
  51.                 {
  52.                 ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  53.  
  54.                 if (ans == 1)
  55.                         {
  56.                         ActiveDocument.SaveAs();
  57.                         }
  58.                 if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  59.                         {
  60.                         buildpath();
  61.                         dropfxnow();
  62.                         }
  63.                 }
  64.         
  65.         ]]>
  66.       </SCRIPT>
  67.     </Item>
  68. </Template>
  69. <Item Type="File" CLASS="Mouseover Button" ID="bn_wrattn"><Icon SRC="bn_wrattn.gif"/><Icon2 SRC="(bn)wrattn.gif"/><Description>Attention</Description><Filename SRC="bn_wrattn.gif"/><Filename2 SRC="(bn)wrattn.gif"/></Item>
  70. <Item Type="File" CLASS="Mouseover Button" ID="bn_wrdown"><Icon SRC="bn_wrdown.gif"/><Icon2 SRC="(bn)wrdown.gif"/><Description>Down</Description><Filename SRC="bn_wrdown.gif"/><Filename2 SRC="(bn)wrdown.gif"/></Item>
  71. <Item Type="File" CLASS="Mouseover Button" ID="bn_wremail"><Icon SRC="bn_wremail.gif"/><Icon2 SRC="(bn)wremail.gif"/><Description>Email</Description><Filename SRC="bn_wremail.gif"/><Filename2 SRC="(bn)wremail.gif"/></Item>
  72. <Item Type="File" CLASS="Mouseover Button" ID="bn_wrfaq"><Icon SRC="bn_wrfaq.gif"/><Icon2 SRC="(bn)wrfaq.gif"/><Description>FAQ</Description><Filename SRC="bn_wrfaq.gif"/><Filename2 SRC="(bn)wrfaq.gif"/></Item>
  73. <Item Type="File" CLASS="Mouseover Button" ID="bn_wrgoback"><Icon SRC="bn_wrgoback.gif"/><Icon2 SRC="(bn)wrgoback.gif"/><Description>Go Back</Description><Filename SRC="bn_wrgoback.gif"/><Filename2 SRC="(bn)wrgoback.gif"/></Item>
  74. <Item Type="File" CLASS="Mouseover Button" ID="bn_wrhelp"><Icon SRC="bn_wrhelp.gif"/><Icon2 SRC="(bn)wrhelp.gif"/><Description>Help</Description><Filename SRC="bn_wrhelp.gif"/><Filename2 SRC="(bn)wrhelp.gif"/></Item>
  75. <Item Type="File" CLASS="Mouseover Button" ID="bn_wrhome"><Icon SRC="bn_wrhome.gif"/><Icon2 SRC="(bn)wrhome.gif"/><Description>Home</Description><Filename SRC="bn_wrhome.gif"/><Filename2 SRC="(bn)wrhome.gif"/></Item>
  76. <Item Type="File" CLASS="Mouseover Button" ID="bn_wrnext"><Icon SRC="bn_wrnext.gif"/><Icon2 SRC="(bn)wrnext.gif"/><Description>Next</Description><Filename SRC="bn_wrnext.gif"/><Filename2 SRC="(bn)wrnext.gif"/></Item>
  77. <Item Type="File" CLASS="Mouseover Button" ID="bn_wrprev"><Icon SRC="bn_wrprev.gif"/><Icon2 SRC="(bn)wrprev.gif"/><Description>Previous</Description><Filename SRC="bn_wrprev.gif"/><Filename2 SRC="(bn)wrprev.gif"/></Item>
  78. <Item Type="File" CLASS="Mouseover Button" ID="bn_wrup"><Icon SRC="bn_wrup.gif"/><Icon2 SRC="(bn)wrup.gif"/><Description>Up</Description><Filename SRC="bn_wrup.gif"/><Filename2 SRC="(bn)wrup.gif"/></Item>
  79.  
  80. </Items>